package com.ziyun.erp.modules.quotePrintFactoryPrice.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import com.ziyun.erp.modules.quotePrintFactoryPrice.dao.QuotePrintFactoryPriceDao;
import com.ziyun.erp.modules.quotePrintFactoryPrice.entity.QuotePrintFactoryPriceEntity;
import com.ziyun.erp.modules.quotePrintFactoryPrice.service.QuotePrintFactoryPriceService;


@Service("quotePrintFactoryPriceService")
public class QuotePrintFactoryPriceServiceImpl extends ServiceImpl<QuotePrintFactoryPriceDao, QuotePrintFactoryPriceEntity> implements QuotePrintFactoryPriceService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<QuotePrintFactoryPriceEntity> page = this.selectPage(
                new Query<QuotePrintFactoryPriceEntity>(params).getPage(),
                new EntityWrapper<QuotePrintFactoryPriceEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public void deleteUpdateBatchId(Integer[] ids, Map<String, Object> map) {
        this.baseMapper.deleteUpdateBatchIds(ids,map);
    }

    @Override
    public void deletePriceBatchId(Integer[] ids, Map<String, Object> map) {
        this.baseMapper.deletePriceBatchId(ids,map);
    }

}
